Otherwise the menu remains in an inconsistent state in case of an
error, until something else triggers a call to _sync() (like a
settings change).
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4431
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1901>
(proxy, error) => {
if (error) {
log(error.message);
- return;
+ } else {
+ this._proxy.connect('g-properties-changed',
+ this._sync.bind(this));
}
- this._proxy.connect('g-properties-changed',
- this._sync.bind(this));
this._sync();
});